import { createStore } from 'vuex';
 
export default createStore({
  state() {
    return {
      is_admin: false,
      is_login: false,
    };
  },
  mutations: {
    setAuthStatus(state, { is_admin, is_login }) {
      state.is_admin = is_admin;
      state.is_login = is_login;
    },
  },
  actions: {
    updateAuthStatus({ commit }, payload) {
      commit('setAuthStatus', payload);
    },
  },
});


